package com.wimcorp.magic.board;

import java.rmi.RemoteException;
import java.util.HashMap;

import com.wimcorp.magic.cards.PlayingCard;
import com.wimcorp.magic.players.Player;

public class Sacrifice extends Cards {

	public Sacrifice(Player player){
		super(player);
	}
	
	@Override
	protected void messagePlayersCardAdded(PlayingCard card) {
		try {
			getPlayer().getUserInterface().message(String.format("Card %s was sacrificed. ",card.getName()));
			getPlayer().getOpponent().getUserInterface().message(String.format("Opponent's Card %s was sacrificed. ",card.getName()));
		} catch (RemoteException e) {
			e.printStackTrace();
		}
		
	}

	public void reset(){
		setCards(new HashMap<Long, PlayingCard>());
	}

}
